﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentNHibernate.Mapping;
using TaiDouCommon.Model;

namespace TaiDouPhotonServer.DB.Mapping
{
    //服务器属性类映射
    public class ServerPropertyMap:ClassMap<ServerProperty>
    {
        public ServerPropertyMap() //这里的X是ServerProperty的实例
        {
            Id(x => x.Id).Column("Id");//设置id属性为主键
            Map(x => x.Ip).Column("ip");
            Map(x => x.Name).Column("name");
            Map(x => x.Count).Column("Count");

            Table("serverproperty");//关联表

        }
    }
}
